const {
  defineConfig
} = require('@vue/cli-service')
module.exports = defineConfig({
  lintOnSave: false, //关闭eslint语法检测
  transpileDependencies: true,
  devServer: {
    host: 'localhost',
    port: 8080,
    hot: true,
    https: false, 
    proxy: { //配置多个代理
      "/api": {
          target: "https://wxapi.kanglailab.com",
          changeOrigin: true,
          ws: true,//websocket支持
          secure: false,
          pathRewrite: {
              "^/api": "/"
          }
      },
      // "/elseIp": {
      //     target: "http://197.0.0.2:8088",
      //     changeOrigin: true,
      //     //ws: true,//websocket支持
      //     secure: false,
      //     pathRewrite: {
      //         "^/elseIp": "/"
      //     }
      // },
  }
  },

})